package com.company.finance.ddd.domain.core.bill.service;

import com.company.finance.ddd.common.IRepository;
import com.company.finance.ddd.domain.core.bill.aggregate.BillAggregate;
import lombok.Data;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author wanglei
 */
@Service
public class QueryBillService {

    @Resource(name = "billRepository")
    private IRepository<BillAggregate> billRepository;

    public BillAggregate get(Long billId) {
        return billRepository.get(billId);
    }

    @Data
    public static class QueryCondition {
        private Long id;
    }
}
